package com.eliaukjq.javase;

/**
 * @Author : 佩萁
 * Description :
 * @Create : 2023/11/15 - 20:32
 */
public class MyClass {
    static void staticMethod() {
        System.out.println("This is a static method");
    }

    void instanceMethod() {
        System.out.println("This is an instance method");
        staticMethod(); // 在实例方法中直接调用类方法
    }


    public static void main(String[] args) {
        MyClass myObject = new MyClass();
        myObject.instanceMethod(); // 输出 "This is an instance method" 和 "This is a static method"
        System.out.println(Math.round(-11.4));
    }
}
